<template>
  <div class="layout-page">
    <van-tabbar v-model="active" active-color="#fa6d1d">
      <van-tabbar-item replace to="/article" icon="notes-o">面经</van-tabbar-item>
      <van-tabbar-item replace to="/collect" icon="star-o">收藏</van-tabbar-item>
      <van-tabbar-item replace to="/like" icon="like-o">喜欢</van-tabbar-item>
      <van-tabbar-item replace to="/user" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
    <!-- 二级占位符 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'layout-page',
  data() {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped></style>
